﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Party</h2>
    <%: ViewData["Message"] %>
    <form method="post">
        <select name="uiPartySelect">
        <% 
           foreach (PartyController.Models.Party party in (List<PartyController.Models.Party>)ViewData["Parties"])
           {
           %>
               <option value="<%: party.Title %>"><%: party.Title %></option>
           
          <% } %>
        </select>

        <input type="text" name="uiName" id="uiName" />
        <input type="submit" value="send" id="uiSubmit" />
        <input type="checkbox" name="uiAttend" />
    </form>

</asp:Content>